import { http } from "@/utils/http";
import { baseUrlApi } from "@/api/utils";
type Result = {
  current_page: number;
  result?: any;
  per_page?: number;
  total?: number;
  data?: any;
};
/** 登录日志列表 */
export const getLogsLoginList = (params?: object) => {
  return http.request<Result>("get", baseUrlApi + "/user-login-log/list", {
    params
  });
};
type ResultDelete = {
  code: number;
  msg: string;
};
export const del = (params?: object) => {
  return http.request<ResultDelete>(
    "delete",
    baseUrlApi + "/user-login-log/delete",
    {
      params
    }
  );
};
